package com.pw.study.collection

object MyCollection1 {
  def main(args: Array[String]): Unit = {
    val list1=for(i<-1 to 10)yield i
    list1.sliding(2,3).foreach(println(_))
  }
}
